module.exports = (ctx, next) => {
	ctx.send = ({ data = null, message = '', code = 200, status = 200, success = true } = {}) => {
		ctx.status = status
		ctx.body = {
			success,
			code,
			message,
			data
		}
	}
	return next()
}